<script src="__HOMEPUBLIC__/Js/Cate/add.js"></script>
<!--breadcrumbs-->
<div id="content-header">
    <div id="breadcrumb"><a href="/Home/Cate/index" title="Go to Home" class="tip-bottom"><i class="icon-th-list"></i>
        分类管理</a><a href="/Home/Cate/add" class="current">分类详情</a>
    </div>
</div>
<!--End-breadcrumbs-->
<!--隐藏域-->
<input type="hidden" id="hidId" value="{$info.id}">
<!--end 隐藏域-->
<!--Action boxes-->
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title"><span class="icon"> <i class="icon-align-justify"></i> </span>
                    <h5>分类详情</h5>
                </div>
                <div class="widget-content nopadding">
                    <form method="get" class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label">分类名称</label>
                            <div class="controls">
                                <input id="cate_name" type="text" placeholder="分类名称" class="span11"
                                       value="{$info.cate_name}">
                            </div>
                        </div>
                        <div id="cate-info">
                            <foreach name="cate_info" item="item">
                                {:W("Home/Cate/index",array($key,$item[0],$item[1],$item[2]))}
                                <!--<div class="control-group cate-info">-->
                                    <!--<label class="control-label">分类字段</label>-->
                                    <!--<div class="controls">-->
                                        <!--<input id="k{$key}" value="{$item[0]}" type="text" placeholder="key值" class="span11">-->
                                    <!--</div>-->
                                    <!--<div class="controls">-->
                                        <!--<input id="n{$key}" value="{$item[1]}" type="text" placeholder="字段名" class="span11">-->
                                    <!--</div>-->
                                    <!--<div class="controls">-->
                                        <!--<select id="t{$key}" class="span11">-->
                                            <!--<option value="0" <if condition="$item[2] eq 0">selected="selected"</if>>文本</option>-->
                                            <!--<option value="1" <if condition="$item[2] eq 1">selected="selected"</if>>时间</option>-->
                                        <!--</select>-->
                                    <!--</div>-->
                                <!--</div>-->
                            </foreach>
                        </div>
                        <div class="form-actions">
                            <a onclick="add_cate_info()" class="btn btn-primary">新增分类字段</a>
                            <a onclick="save_info()" class="btn btn-success">保存</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


